package org.dyz.banana.platform.sample.eurakaclient2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HttpClientController {

//	@GetMapping("/sample2/getData")
//	public String getData(@RequestParam("name")String name) {
//		return restTemplate.getForObject("http://eurakaclientsample1/sample/getData?name="+name, String.class);
//	}
//	
//	@GetMapping("/sample2/getData/{name}")
//	public String getData2(@PathVariable("name")String name) {
//		return restTemplate.getForObject("http://eurakaclientsample1/sample/getData/{name}", String.class,name);
//	}
}
